package com.zretc.emptraining.dao;

import java.util.List;

import com.zretc.emptraining.dbtools.PageData;
import com.zretc.emptraining.entity.Teach;

public interface TeachDao {
	// 增加教员
	public boolean addTeach(Teach teach);

	// 删除教员
	public boolean delTeachByTeachNo(int teachno);

	// 修改教员信息
	public boolean updTeach(Teach teach);

	// 修改教员照片
	public boolean updInfo(Teach teach);

	// 根据教员名获取教员所有信息
	public Teach getTeachByTeacheName(String teachname);
	
	// 根据教员编号分页查询教员信息
	public PageData<Teach> getPageByteachNo(int page, int pageSize, String keyword);
	// 根据教员名分页查询教员信息
	public PageData<Teach> getPageByteachName(int page, int pageSize, String keyword);
	// 根据教员性别分页查询教员信息
	public PageData<Teach> getPageByteachSex(int page, int pageSize, String keyword);
	// 根据教员学历分页查询教员信息
	public PageData<Teach> getPageByteachXl(int page, int pageSize, String keyword);

	// 获取所有的教员信息
	public List<Teach> getAllTeachers();

	// 根据电话号码获取单个教员信息
	public List<Teach> getTeachByTel(String teachtel);

	// 通过手机号 修改教员头像、自我描述
	public boolean updInfoByDesc(String Tel, String desc, String teacherPic);
}
